<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  [
    '<div contenteditable>',
      '<div>|<br></div>',
      '^<table><tbody>',
        '<tr><td>1</td><td>2</td></tr>',
      '</tbody></table>',
    '</div>',
  ],
  'delete',
  [
    '<div contenteditable>',
      '<div>',
        '|<table><tbody>',
          '<tr><td>1</td><td>2</td></tr>',
        '</tbody></table>',
      '</div>',
    '</div>',
  ],
  'Delete paragraph before TABLE');
</script>
